package com.itheima;

/**
 * 2025/4/7 19:53
 */
public class Test1 {
    public static void main(String[] args) {

        Student s1 = new Student();
        System.out.println("---------------------s1--------------");
        //给s1对象设置属性值
        s1.setName("王五");
        s1.setChinese(100);
        s1.setMath(-100);

        //取出s1对象的属性值
        String name = s1.getName();
        double chinese = s1.getChinese();
        double math = s1.getMath();

        System.out.println("name = "+name);
        System.out.println("chinese = "+chinese);
        System.out.println("math = "+math);

        /*System.out.println(s1.name);
        System.out.println(s1.math);
        System.out.println(s1.chinese);

        System.out.println("--------------s2-------------------");
        Student s2  = new Student("李四",60,80);
        System.out.println(s2.name);
        System.out.println(s2.math);
        System.out.println(s2.chinese);
        System.out.println("-------------------this---------------");
        s1.printThis();
        System.out.println(s1);
        System.out.println("------------------");
        s2.printThis();
        System.out.println(s2);*/



    }
}
